package com.cmc.cloud.cmclink.doc.vo.voyagebsacbavo;

import lombok.*;

import java.util.*;

import io.swagger.v3.oas.annotations.media.Schema;
import com.cmes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * Class-based Allocation分类舱位分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - Class-based Allocation分类舱位分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VoyageBsaCbaPageReqVO extends PageParam {

    @Schema(description = "舱位主信息id", example = "25479")
    private Long voyageBsaId;

    @Schema(description = "舱位类型代码")
    private String spaceTypeCode;

    @Schema(description = "舱位说明")
    private String spaceIntruction;

    @Schema(description = "分配舱位(teu)")
    private Integer allocationSpace;

    @Schema(description = "剩余舱位(teu)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer remainAllocationSpace;

    @Schema(description = "冷插数")
    private Integer rfUnit;

    @Schema(description = "剩余冷插数")
    private Integer remainRfUnit;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
